package com.carbon.assets.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carbon.assets.entity.CarbonCreditAssets;

import com.carbon.assets.entity.CarbonMetaregistry;
import com.carbon.common.service.BaseService;
import com.carbon.assets.vo.CarbonCreditAssetsQueryVo;
import java.math.BigDecimal;
import com.carbon.assets.vo.SelectorVo;
import com.carbon.common.service.BaseService;
import com.carbon.assets.vo.CarbonCreditAssetsQueryVo;
import java.util.List;

/**
 * <p>
 * 碳信用资产 服务类
 * </p>
 *
 * @author Li Jun
 * @since 2022-04-24
 */
public interface CarbonCreditAssetsService extends BaseService<CarbonCreditAssets> {
      public List<CarbonCreditAssetsQueryVo> queryJoinCreditAssets(String tenantId);


      IPage<CarbonMetaregistry> queryProjectList(Page<CarbonMetaregistry> pagination, String projectName, Long tenantId);

    CarbonCreditAssets getByCarbonProjectId(Long projectId);

    void updateAmount(Long projectId, BigDecimal tradeQuantity);

      public CarbonCreditAssetsQueryVo queryJoinOneCreditAssets(String id, String tenantId);

    Page<CarbonCreditAssetsQueryVo> selectBySelector(Page<CarbonCreditAssetsQueryVo> page, SelectorVo selectorVo);


}
